package com.demo.repository;

import com.demo.model.User;
import org.springframework.stereotype.Repository;

@Repository
public class UserRepository {
     public User getUser(){
         //伪代码
         User user=new User();
         user.setId(1);
         user.setName("张三");
         return user;
     }
}
